// 连接faceapi XHR服务
var req_host = window.location.hostname;
// var req_host = '192.168.8.40'
var req_port = '26422';
var transport = new Thrift.Transport('http://' + req_host + ':' + req_port);
var protocol = new Thrift.Protocol(transport);
var client = new FaceApiClient(protocol);